package ModelLayer;
public class PickupDiscount 
{
    
    private static PickupDiscount instance = new PickupDiscount();
    private static double pickupDiscount = 1.8;

    private PickupDiscount()
    {
        
    }
    
    public static PickupDiscount getInstance()
    {
        if(instance==null) instance = new PickupDiscount();
        return instance;
    }
          
    
    public static double getDiscount(String check)
    {
         if(check == "y") return pickupDiscount;
         return 0;
    }

    public void setPickupDiscount(double pickupDiscount) 
    {
        this.pickupDiscount = pickupDiscount;
    }
    

}
